<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><roundcube:object name="pagetitle" /></title>
<roundcube:include file="/includes/links.html" />
<link rel="stylesheet" type="text/css" href="/settings.css" />
<link rel="stylesheet" type="text/css" href="/sieverules.css" />
<script type="text/javascript" src="/functions.js"></script>
<script type="text/javascript" src="/splitter.js"></script>

<style type="text/css">

#listbuttons { left: 20px;}
#mainscreen { left:20px; /* IE hack */ width:expression((parseInt(document.documentElement.clientWidth)-40)+'px') }
#sieverules-list { width: <roundcube:exp expression="!empty(cookie:sieverulesviewsplitter) ? cookie:sieverulesviewsplitter-5 : 240" />px; }
#sieverules-details {
    left: <roundcube:exp expression="!empty(cookie:sieverulesviewsplitter) ? cookie:sieverulesviewsplitter+5 : 250" />px;
    /* IE hack */
    width:expression((parseInt(mainscreen.offsetWidth)-<roundcube:exp expression="!empty(cookie:sieverulesviewsplitter) ? cookie:sieverulesviewsplitter+5 : 250" />)+'px')
}

</style>

</head>
<body onload="rcube_init_settings_tabs()">

<roundcube:include file="/includes/taskbar.html" />
<roundcube:include file="/includes/header.html" />
<roundcube:include file="/includes/settingstabs.html" />

<div id="mainscreen">

<div id="sieverules-list">
<roundcube:object name="sieveruleslist" upicon="/images/buttons/up_arrow.png" downicon="/images/buttons/down_arrow.png" />
</div>

<script type="text/javascript">
  var addrviewsplit = new rcube_splitter({id:'sieverulesviewsplitter', p1: 'sieverules-list', p2: 'sieverules-details', orientation: 'v', relative: true, start: 245});
  rcmail.add_onload('addrviewsplit.init()');
</script>

<div id="sieverules-details">
<div id="identity-title"><roundcube:object name="steptitle" /></div>

<div style="padding:15px;">
<roundcube:object name="sieveruleform" size="40" textareacols="60" textarearows="6" addIcon="plugins/sieverules/add.png" deleteIcon="/images/icons/folder-trash.png" helpIcon="plugins/sieverules/help.gif" />

<p><br />
<roundcube:button command="delete-sieverule" type="input" class="button" label="delete" condition="env:action=='edit-sieverule'" style="margin-right:0.5em" />
<roundcube:button command="save-sieverule" type="input" class="button mainaction" label="save" />
</p>
</div>
</div>

</div>

<p id="listbuttons">
<roundcube:button command="add-sieverule" type="input" label="newfilter" class="button" />
</p>

</body>
</html>
